package Observer_Pattern.Shares;

import java.util.ArrayList;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public abstract class AbstractTraget {
    protected double num;
    protected ArrayList<Observe> abc =new ArrayList<Observe>();

    public double getNum() {
        return num;
    }

    public void setNum(double num) {
        this.num = num;
    }

    public void join(Observe observe){
        abc.add(observe);
    }
    public void remove(Observe observe){
        abc.remove(observe);
    }
    public abstract void play(Double num);
}
